#ifndef _RESERVER_H_
#define _RESERVER_H_

#define FREE    -1
#define SWITCH  0
#define TRACK   1

typedef struct __resource_event {
  int type;
  int arg0;
  int arg1;
} resource_event;

void ReservationServer();
int ReserveTrack(int v1, int v2);
int ReserveSwitch(int id);
void FreeTrack(int v1, int v2);
void FreeSwitch(int v1);

#endif // _RESERVER_H_
